<script setup>
import user from '@/store/user'

</script>

<template>
  <el-card v-if="user.login" class="box-card">
    <template #header>
      <div class="card-header">
        <span>{{ user.info.name }}</span>
      </div>
    </template>
    <div>
      <p>邮箱： {{ user.info.email }}</p>
    </div>
  </el-card>
  <el-card v-else>
    <template #header>
      <div class="card-header">
        <span>你还没登陆哦</span>
      </div>
    </template>
    <div>
      <RouterLink to="/login">前往登陆</RouterLink>
    </div>
  </el-card>
</template>
